package com.foreknow.demo0928;

public class Dog extends Pet {
    public void catchfly() {
        System.out.println("狗在抓蝴蝶");
    }

    @Override
    public void toHospital() {
        //Dog设置健康值
        this.setHealth(60);
        System.out.println("狗在吃药");
    }

}
